import Http from '../../http';

//链接
export const getList = function (queryModel: any) {
    return Http.get('/applink/index', queryModel)
}
export const getEdit = function (id: number) {
    return Http.get('/applink/AddOrEdit', { id: id })
}
export const postAdd = function (from: any) {
    return Http.post('/applink/Create', from)
}
export const putEdit = function (from: any) {
    return Http.put('/applink/Edit', from)
}
export const delOne = function (id: number) {
    return Http.delete('/applink/Delete', { id: id })
}

///类别
export const getCateListAll = function () {
    return Http.get('/applinkcate/List')
}
export const getCateList = function (queryModel: any) {
    return Http.get('/applinkcate/index', queryModel)
}
export const getCateEdit = function (id: number) {
    return Http.get('/applinkcate/AddOrEdit', { id: id })
}
export const postCateAdd = function (from: any) {
    return Http.post('/applinkcate/Create', from)
}
export const putCateEdit = function (from: any) {
    return Http.put('/applinkcate/Edit', from)
}
export const delCateOne = function (id: number) {
    return Http.delete('/applinkcate/Delete', { id: id })
}